package com.changgou.pay.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wz
 * @company 公司
 * @create 2020-04-13 11:45
 */
@Configuration
public class RabbitMQConfig {

    //队列名称
    public static  final String ORDER_PAY="order_pay";

    @Bean
    public Queue queue(){
        return new Queue(ORDER_PAY);
    }
}
